import request from '@/utils/request'

// 查询广告位管理列表
export function listAdvertPostManag(query) {
  return request({
    url: '/property/advertPostManag/list',
    method: 'get',
    params: query
  })
}

// 查询广告位管理详细
export function getAdvertPostManag(id) {
  return request({
    url: '/property/advertPostManag/' + id,
    method: 'get'
  })
}

// 新增广告位管理
export function addAdvertPostManag(data) {
  return request({
    url: '/property/advertPostManag',
    method: 'post',
    data: data
  })
}

// 修改广告位管理
export function updateAdvertPostManag(data) {
  return request({
    url: '/property/advertPostManag',
    method: 'put',
    data: data
  })
}

// 删除广告位管理
export function delAdvertPostManag(id) {
  return request({
    url: '/property/advertPostManag/' + id,
    method: 'delete'
  })
}

// 导出广告位管理
export function exportAdvertPostManag(query) {
  return request({
    url: '/property/advertPostManag/export',
    method: 'get',
    params: query
  })
}